<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div class="content">
        <h2>谢家大院卖身契</h2>
        <ul>
            <li>hsvghshdbh</li>
            <li>dedgfrhrh</li>
            <li>hrthrhtrth</li>
            <li>trhrhrhreh</li>
            <li>hrhtrhjt</li>
            <li>hrthrthrtj</li>
        </ul>
    </div>
    <div class="btn">
        <button type="button" disabled="disabled"></button>
    </div>
    <script type="text/javascript">
        var btn = document.querySelector('button')
        var num = 10
        btn.innerHTML = num

        var time = setInterval(function(){
            num--
            btn.innerHTML = num
            if(num==0){ 
                btn.innerHTML = "确定"
                btn.disabled = false
                clearInterval(time)
            }
        },1000)
    </script>
</body>
</html>